#include<stdio.h>
int main()
{
    int m, n;
    scanf("%d", &m);
    for (n=2; n < m - 1; n = n + 1)
    if (m % n == 0)
        break;
    if (n < m)
        printf("Yes.\n",m);
    else
        printf("No.\n",m);
}
